package com.duanjc.shiro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duanjc.shiro.entity.TPerms;
import com.duanjc.shiro.entity.TUser;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author duanjiangcheng
 * @since 2022-11-29 03:58:52
 */
public interface TUserService extends IService<TUser> {


    void register(TUser user);

    /**
     * description: 根据用户名查询角色 <br>
     * version: 1.0 <br>
     * date: 2022/11/29 16:21 <br>
     * author: duanjiangcheng <br>
     * @param username username
     * @return com.duanjc.shiro.entity.TUser
     */ 
    TUser findRolesByUserName(String username);


    List<TPerms> findPermsByRoleId(Integer roleId);

    List<TUser> all();

}
